import qs from 'qs'

export default $axios => ({
    getWordList(name, keywords) {
        return $axios.post('/server/api/model/predict', {
            name,
            keywords
        })
    },
    think(keywords, word, type){
        return $axios.put('/server/api/model/',{
            keywords,
            word,
            type
        })
    },
    postRank(name, rank){
        return $axios.post('/server/api/model/'),{
            name,
            rank
        }
    },
})